<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <title>Document</title>
    <style>
        h1 {
            width: 700px;
            margin-top: 100px;
            margin: 100px auto;
            animation-delay: 3s;
        }
        .head{
            width: 100%;
            height: 30px;
            position: fixed;
            z-index: 22;
            top: 0;
            left: 0;
            background: #000;
        }
        .box{
            width: 100px;
            height: 100px;
            margin: 100px auto;
            background-color: aqua;
        }
    </style>
</head>

<body>
    <!-- <h1>点我跳转</h1> -->
    <div class='head'>头部</div>
    <script>
        // var h=document.querySelector('h1');
        // h.onclick=function(){
        //      window.location.href = 'test2.html?message=hello&who=world';
        // }
       
        // localStorage.setItem('name','zhangsan');
        // console.log(111);
        // console.log(localStorage.getItem('name'))
    </script>
</body>

</html>